package com.shop.shopmall.mapper;

import com.shop.shopmall.pojo.GoodsInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.MapKey;

import java.util.Map;

/**
* @author jamie
* @description 针对表【goods_info】的数据库操作Mapper
* @createDate 2025-03-31 17:10:38
* @Entity com.shop.shopmall.pojo.GoodsInfo
*/
public interface GoodsInfoMapper extends BaseMapper<GoodsInfo> {

    /**
     * 获取商品总数
     * @return
     */
    @MapKey("name")
    Map<String, Integer> getGoodsTotal();

}




